package cn.kgc.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 商品会员价格(SmsMemberPrice)表实体类
 *
 * @author makejava
 * @since 2022-12-06 08:59:04
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "sms_member_price")
@SuppressWarnings("serial")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class SmsMemberPrice extends Model<SmsMemberPrice> implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id; //主键


    /**
     * sku_id
     **/
    @TableField(value = "sku_id")
    private Long skuId;


    /**
     * 会员等级id
     **/
    @TableField(value = "member_level_id")
    private Long memberLevelId;


    /**
     * 会员等级名
     **/
    @TableField(value = "member_level_name")
    private String memberLevelName;


    /**
     * 会员对应价格
     **/
    @TableField(value = "member_price")
    private BigDecimal memberPrice;


    /**
     * 可否叠加其他优惠[0-不可叠加优惠，1-可叠加]
     **/
    @TableField(value = "add_other")
    private Short addOther;


    @TableField(value = "creationdate", fill = FieldFill.INSERT)
    @JsonIgnore
    private Date creationdate; //创建时间


    @TableField(value = "modifydate", fill = FieldFill.UPDATE)
    @JsonIgnore
    private Date modifydate; //修改时间


    @TableLogic
    @JsonIgnore
    @TableField(fill = FieldFill.INSERT)
    private int deleted;  //逻辑删除标志


    @Version
    private int version;   //版本


}
